<template>
  <el-dialog
    :model-value="visible"
    title="原因"
    width="600"
    :close-on-click-modal="false"
    @close="cls"
  >
    {{ result }}
  </el-dialog>
</template>

<script setup>
import { ref } from "vue";
import { ElMessage } from "element-plus";
import { queryResult } from "@/api/audit.js";

const emits = defineEmits(["close", "refresh"]);
let result;
function cls() {
  emits("close");
}
async function init(id) {
  let res = await queryResult(id);

  console.log(res);
  result = res.data;
}
const props = defineProps({
  visible: {
    type: Boolean,
    default: false
  }
});

defineExpose({ init });
</script>
